package com.director.core;

/**
 * Author: Simone Ricciardi
 * Date: 6-giu-2010
 * Time: 11.29.30
 */
public interface DirectTransactionData {

   /**
    * Parse the transaction data parameter acceding by order.
    * (The data are provided as a list of ordered parameter values)
    *
    * @param order
    * @param type
    * @param <T>
    * @return
    */
   <T> T parseValue(int order, Class<T> type);

   /**
    * Parse the transaction data parameter acceding by parameter name.
    * (The data are provided as a list of named/values pairs, like a Map)
    *
    * @param name
    * @param type
    * @param <T>
    * @return
    */
   <T> T parseValue(String name, Class<T> type);
}
